New Functions in Week 7

as.factor

{base}

Coerce a vector to factor

barplot

{graphics}

Plot a simple bar plot

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

addmargins

{stats}

Puts Arbitrary Margins on Multidimensional Tables or Arrays

tapply

{base}

Create statistical summaries by group based on the levels of one or several factors

as.numeric

{base}

Coerce a vector to numeric

which

{base}

return indexes of TRUE entries of a logical vector

prop.table

{base}

Transform frequency table into table of proportions

cor

{stats}

Calculate Correlation Matrix

cor.test

{stats}

Test for Association/Correlation Between Paired Samples

par

{graphics}

Set parameters of the plotting device

The end!